package com.glodon.paas.qto.service;

import java.util.Map;

import com.glodon.paas.qto.model.TaskProgress;

/**
 * 任务下发给job server
 * 
 * @author botao.liao
 * 
 */
public interface DispatcherService {

	/**
	 * 将任务发送到job server.
	 * 
	 * @param function
	 * @param params
	 * @return job-server返回的TaskId
	 */
	@SuppressWarnings("rawtypes")
    public String dispath(String function, Map params);
	
    /**
     * 向job-server查询Task进度信息.
     * 
     * @param jobServerTaskId
     * @return
     */
    public TaskProgress queryTaskProgress(String jobServerTaskId);

}
